﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization; // this is required

namespace DomainModel
{
    [DataContract]
    public class Customer
    {
        [DataMember]
        public int customer_id = 0;
        [DataMember]
        public string email = "";
        [DataMember]
        public string first_name = "";
        [DataMember]
        public string last_name = "";
        [DataMember]
        public string address = "";
        [DataMember]
        public string state = "";
        [DataMember]
        public int zip = 0;
        [DataMember]
        public string city = "";
        [DataMember]
        public int webmaster = 0;
        [DataMember]
        public int blockuser = 0;
    }

    [DataContract]
    public class Product
    {
        [DataMember]
        public int product_id = 0;
        [DataMember]
        public int display_id = 0;
        [DataMember]
        public string display_type = "";
        [DataMember]
        public int res_id = 0;
        [DataMember]
        public int resolution = 0;
        [DataMember]
        public int make_id = 0;
        [DataMember]
        public string make = "";
        [DataMember]
        public int size_id = 0;
        [DataMember]
        public int size = 0;
        [DataMember]
        public int refresh_id = 0;
        [DataMember]
        public int refresh_rate = 0;
        [DataMember]
        public double price = 0.00;
        [DataMember]
        public string date_added = "";
        [DataMember]
        public int shipping = 0;
        [DataMember]
        public int num_sales = 0;
        [DataMember]
        public int num_stocked = 0;
    }

    [DataContract]
    public class Order
    {
        [DataMember]
        public int order_id = 0;
        [DataMember]
        public int customer_id = 0;
        [DataMember]
        public double total_price = 0;
        [DataMember]
        public DateTime date_created = DateTime.Now;
        [DataMember]
        public int quantity = 0;
        [DataMember]
        public int product_id = 0;
        [DataMember]
        public double sub_total = 0;
        [DataMember]
        public int item_state = 0;
        [DataMember]
        public int is_ordered = 0;
    }
    [DataContract]
    public class OrderItem
    {
        [DataMember]
        public int item_id = 0;
        [DataMember]
        public int order_id = 0;
        [DataMember]
        public int quantity = 0;
        [DataMember]
        public int product_id = 0;
        [DataMember]
        public double sub_total = 0;
        [DataMember]
        public int item_state = 0;

    }
}